package com.example.tally;

import android.app.Application;
import com.example.tally.db.DBManager;
import com.example.tally.ex.CrashHandler;

/**
 * @author:0.2℃
 * @date： 2021-07-14 03:18
 * @Description ：表示全局应用的类
 */

public class UniteApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        //捕获全局化异常
        CrashHandler crashHandler = CrashHandler.getInstance();
        crashHandler.init(getApplicationContext());
        // 初始化数据库
        DBManager.initDB(getApplicationContext());
    }
}
